home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / windowwatcher / nsIAuthPromptWrapper.h next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAuthPromptWrapper.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAuthPromptWrapper_h__
  6. #define __gen_nsIAuthPromptWrapper_h__
  7.  
  8.  
  9. #ifndef __gen_nsIAuthPrompt_h__
  10. #include "nsIAuthPrompt.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIPrompt; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIAuthPromptWrapper */
  21. #define NS_IAUTHPROMPTWRAPPER_IID_STR "6228d644-17fe-11d4-8cee-0060b0fc14a3"
  22.  
  23. #define NS_IAUTHPROMPTWRAPPER_IID \
  24.   {0x6228d644, 0x17fe, 0x11d4, \
  25.     { 0x8c, 0xee, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
  26.  
  27. /**
  28.  * nsIAuthPromptWrapper
  29.  *
  30.  * An override of nsIAuthPrompt which performs some action
  31.  * on the data going through nsIAuthPrompt methods. Persisting
  32.  * data from the prompts and using it to pre-fill subsequent prompts
  33.  * would be one such action.
  34.  *
  35.  * @status
  36.  */
  37. class NS_NO_VTABLE nsIAuthPromptWrapper : public nsIAuthPrompt {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTHPROMPTWRAPPER_IID)
  41.  
  42.   /**
  43.      * setPromptDialogs
  44.      *
  45.      * @param dialogs  the dialog implementation which will
  46.      *                 be used to display the prompts
  47.      */
  48.   /* void setPromptDialogs (in nsIPrompt dialogs); */
  49.   NS_IMETHOD SetPromptDialogs(nsIPrompt *dialogs) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSIAUTHPROMPTWRAPPER \
  55.   NS_IMETHOD SetPromptDialogs(nsIPrompt *dialogs); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIAUTHPROMPTWRAPPER(_to) \
  59.   NS_IMETHOD SetPromptDialogs(nsIPrompt *dialogs) { return _to SetPromptDialogs(dialogs); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIAUTHPROMPTWRAPPER(_to) \
  63.   NS_IMETHOD SetPromptDialogs(nsIPrompt *dialogs) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPromptDialogs(dialogs); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsAuthPromptWrapper : public nsIAuthPromptWrapper
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIAUTHPROMPTWRAPPER
  74.  
  75.   nsAuthPromptWrapper();
  76.  
  77. private:
  78.   ~nsAuthPromptWrapper();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsAuthPromptWrapper, nsIAuthPromptWrapper)
  86.  
  87. nsAuthPromptWrapper::nsAuthPromptWrapper()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsAuthPromptWrapper::~nsAuthPromptWrapper()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* void setPromptDialogs (in nsIPrompt dialogs); */
  98. NS_IMETHODIMP nsAuthPromptWrapper::SetPromptDialogs(nsIPrompt *dialogs)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_nsIAuthPromptWrapper_h__ */
  108.